<?php


namespace app\admin\controller;

use app\admin\model\TaskRecord;
use think\Db;

class  TaskRecordController extends  ContentController {

    public function index(){
        return $this->fetch();
    }
    public function read(){
        $Api =  new TaskRecord();
        $count   = $Api->count();
        $data = $Api->page(input('get.page'),input('get.limit'));
       $data = $data->order('task_record_id','desc');
         $data =$data->select();
        return json(array('code' => 0, 'msg' => "", 'data' => $data, 'count' =>$count ));
    }
}
